<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>万达房地产后台登录</title>
<link href="../Admin/wo/css/login.css" type="text/css" rel="stylesheet">
</head>
<body>

	<div class="login">
		<div class="message">万达房地产管理登录</div>
		<div id="darkbannerwrap"></div>

		<form action="../user/login.action" method="post">
			<input name="action" value="login" type="hidden"> <input
				name="username" placeholder="用户名" required="" type="text"
				style="width: 320px; height: 40px" value="admin">
			<hr class="hr15">
			<input name="userpassword" placeholder="密码" required="" type="password"
				style="width: 320px; height: 40px" value="admin">
			<hr class="hr15">
			
			
			<!-- <input name="usermobile" id="usermobile" placeholder="请输入手机号"
				type="text" style="width: 320px; height: 40px"><br> <span
				id="phone"></span>
			<hr class="hr15">
			<div class="form-group">
				<input name="yzm" placeholder="请输入手机验证码" type="text"
					style="width: 230px; height: 40px"> <input id="p"
					type="button" value="获取验证码" onclick="settime(this)"
					style="text-align: center; padding: 10px 10px 30px 10px; width: 90px; height: 30px; font-size: 13px;" />
			</div> -->
			
			
			</br> <input value="登录" style="width: 100%;" type="submit">
			<hr class="hr20">
			<!-- 帮助 <a onClick="alert('请联系管理员')">忘记密码</a> -->
		</form>
	</div>
	<script src="../Admin/role/js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript">
		$("#usermobile").mouseleave(function() {
			var usermobile = $("#usermobile").val();
			if (usermobile == "") {
				$("#phone").text("请填写手机号").css("color", "red");
				return;
			} else {
				$("#phone").text("").css("color", "red");
			}
		});
		
		/* $('#p').click(function() {
			var usermobile = $("#usermobile").val();
			//alert(usermobile);
			$.ajax({
				url : "../send/send.do",
				type : "POST",
				dataType : "json",
				data : {
					usermobile : usermobile
				},
				success : function(data) {
						
				},
			});

		});
		 */
		
		var countdown = 120;
		function settime(val) {
			if (countdown == 0) {
				val.removeAttribute("disabled");
				val.value = "获取验证码";
				countdown = 120;
			} else {
				val.setAttribute("disabled", true);
				val.value = "重新发送(" + countdown + ")";
				countdown--;
			}
			setTimeout(function() {
				settime(val)
			}, 1000)
		}
	</script>
</body>
</html>